package com.gxy.learn.design.model.create.prototype.shallowclone;

import lombok.extern.slf4j.Slf4j;

/**
 * @description:
 * @author: gaoxueyong
 * @Date: 2022/11/7 11:55
 */
@Slf4j
public class Realizatype implements Cloneable{
    public Realizatype() {
        log.info("具体的原形对象创建成功");
    }

    @Override
    protected Realizatype clone() throws CloneNotSupportedException {
        log.info("具体的原形对象复制成功");
        return (Realizatype)super.clone();
    }
}
